package com.stefanini.pe.bbva.bp.in.bo.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.stefanini.pe.bbva.bp.in.bo.iface.MultiTablaBOIface;
import com.stefanini.pe.bbva.bp.in.dao.iface.MultiTablaDAOIface;
import com.stefanini.pe.bbva.bp.in.to.MultiTabla;

@Service("multiTablaBO")
public class MultiTablaBOImpl implements MultiTablaBOIface{
	
	@Autowired
	private MultiTablaDAOIface multiTablaDAO;
	
	public List<MultiTabla> listarMultiTabla(String in_idtabla, String in_iditem) throws Exception{
		return multiTablaDAO.listarMultiTabla(in_idtabla, in_iditem);
	}

	public List<Map<String,String>> listarTablas() throws Exception{
		return multiTablaDAO.listarTablas();
	}

	public Map<String,Object> insertarMultiTabla(MultiTabla multiTabla){
		return multiTablaDAO.insertarMultiTabla(multiTabla);
	}

	public Map<String,Object> modificarMultiTabla(MultiTabla multiTabla){
		return multiTablaDAO.modificarMultiTabla(multiTabla);
	}

	public List<HashMap> obtenerMultiTablaXID(String idcodigo) throws Exception{
		return multiTablaDAO.obtenerMultiTablaXID(idcodigo);
	}

}
